package com.villaday.idf.adapter;

import android.content.Context;
import android.view.View;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.base.OnAdapterCallbackListener;
import com.villaday.idf.model.Cities_villagesEntity;
import com.villaday.idf.model.RefreshtokenEntity;
import com.villaday.idf.model.VipRuleEntity;
import com.villaday.idf.util.PhoneUtil;
import com.villaday.idf.util.SharedPreferencesUtil;

/**
 * 邀请vip规则
 */

public class VipRuleRVAdapter extends AbsRecyclerViewAdapter<VipRuleEntity.BodyBean.RulesBean> {


    public VipRuleRVAdapter(Context context) {
        super(context, R.layout.item_vip_rule, R.layout.item_page_loading,
                R.layout.item_page_bottom);
    }


    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, VipRuleEntity.BodyBean.RulesBean d, int position) {

        holder.bindTextView(R.id.tv_serial_number, (position + 1) + "")
                .bindTextView(R.id.tv_discribe, d.getDescription());


    }
}
